<h1>CAMT Dashboard</h1>

<div class="fbblueboxlite">
<table>
  <tr>
    <th width="50px">Title </th>
    <th width="100px">First name</th>
    <th width="100px">Last name</th>
    <th width="100px">Student ID</th>
    <th width="100px">Status</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @students.each do |student| %>
  <tr>
    <td><%= student.title %>
    <td><%= student.firstname %></td>
    <td><%= student.lastname %></td>
    <td><%= student.student_id %></td>
    <td><%= student.status %></td>
    <td><%= link_to 'Show', student%></td>
    <td><%= link_to 'Edit', edit_student_path(student) %></td>
    <td><%= link_to 'Delete', student, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>
</div>
<br />

<%= button_to 'New Student', new_student_path %>
